$(function () {

    var ul = $('#slider');
    var li = ul.children('li');
    ul.css({width:li.length*100+'%'});
    li.eq(0).addClass('current');
    var slider = new fz.Scroll('.ui-slider', {
        role: 'slider',
        indicator: true,
        autoplay: true,
        interval: 3*1000
    });
});